﻿Public Class Task1
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        lbl_result.Text = getTotal(tb_first.Text, tb_second.Text)
    End Sub

    Private Function getTotal(ByVal firstStr As String, ByVal secondStr As String) As String
        Dim first, second As Single
        first = CSng(firstStr)
        second = CSng(secondStr)
        Dim result As Single
        result = first + second
        Return CStr(result)


    End Function
End Class